
/**
 * 处理缓存时机的逻辑
 * 应用页面必须声明方法：clearCacheMethod， 只需在应用页面声明该方法并在方法内写初始化的业务逻辑，无需关注执行时机
 * */
export default {
    data() {
        return {
            passMounted: false
        };
    },
    methods: {

    },
    mounted() {
        this.passMounted = true;
    },
    activated() {
        if (!this.passMounted && this.$route.params.clearCache) {
            this.clearCacheMethod();
        }
        this.passMounted = false;
    }
};
